//
//  DHNormalCell.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/10.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHFunctionCell.h"
@interface DHFunctionCell()
@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end
@implementation DHFunctionCell
- (void)setCellInfo:(DHNorCellInfo *)cellInfo{
    _cellInfo = cellInfo;
    
    self.imgView.image = [UIImage imageNamed:cellInfo.imgName];
    self.nameLabel.text = cellInfo.cellName;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(cellClick)];
    [self.contentView addGestureRecognizer:tap];
}
- (void)cellClick
{
    [self.delegate functionCell:self didClickCellWithInfo:self.cellInfo];
}

@end
